<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*,java.text.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>用户登录</title>
    <meta charset="utf-8"/>
    <script  src='js/core.js'></script>
    <link type="text/css" rel='stylesheet' href="css/pad.css"/>
</head>
<body>
<div id="page">
<%
           	String tmpUsername=request.getParameter("username");
			String username=(String)session.getAttribute("username");
			String flag = (String)session.getAttribute("flag");
%>
    <header class="header"></header>
    <section class="main">
        <h1  class='title'>支持多终端自适应测评系统-CAT</h1>
        <article class="left pr">
            <div class="sub pa"></div>
            <div class="lock pa"></div>
        </article>
        <article class="right">
            <form action="login_chuli.jsp" method = "post" name="loginForm" id="loginForm">
            	<%if(tmpUsername == null) {%>
                <p ><label class="la" for="name">用户名：</label><input id="name" name='username' type="text" class="inp br3" autocomplete="off"/></p>
                <%}else{%>
                <p ><label class="la" for="name">用户名：</label><input id="name" name='username' type="text" class="inp br3" autocomplete="off" value = "<%=tmpUsername%>"/></p>
                <%}%>
                <p><INPUT style="display: none;" id="fake-pw" value="密码" type="text"/></p>
                <p><label class="la" for="userPassword">密&nbsp;&nbsp;&nbsp;码：</label><input name="userPassword" id="userPassword" type="password" class="inp br3"  autocomplete="off"  /></p>
                <p><label class="la" for="code">验证码：</label><input name="verification" style="width: 116px;" id="code" type="text" class="inp br3"  autocomplete="off"  />&nbsp;&nbsp;&nbsp;<img border=0 src="image.jsp" /></p>
                <p><label class="la" >身&nbsp;&nbsp;&nbsp;份：</label><span>
                <input id="manager"  value="Admin"  type="radio" name="logType"/><label for="manager">管理员</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input checked id="student" value="Student" type="radio" name="logType"/><label for="student">学生</label></span></p>
                <p><input type="submit" id="btn-login" class="btn fl br3" value="登   录"/>
                  <input type="button" onclick="javascript:window.location.href='pages/student/student_add.jsp'" class="btn fr br3 mr6" value="注   册"/></p>
            </form>
        </article>
    </section>
    <footer class="footer"><small>© 2012 Nenu</small></footer>
</div>
</body>
</html>